package com.cmcc.sdtp.util;

import java.io.InputStream;
import java.util.Properties;


public class SdtpPropertiesUtil {

	private static Properties props;

	/**
	 * 初始化
	 * */
	static {
		try {
			InputStream in = SdtpPropertiesUtil.class.getClassLoader().getResourceAsStream("config/sdtp.properties");
			props = new Properties();
			props.load(in);
		} catch (Exception e) {
			e.printStackTrace();
			//Log.error(path+"获取配置文件路径或解析文件异常：",e);
		}
	}

	/**
	 * 获取某个属性
	 */
	public static String getProperty(String key) {
		return props.getProperty(key);
	}

}